﻿//V2版本的兼容接口
var WebNote_OtherFiles="";

function SetData(_html)
{
	setHTML(_html,true);
}

function GetData(_html)
{
	return getHTML();
}

function BeforeSubmit(_mode,_obj)
{
	var s=onbeforesubmit();
	var html=getHTML();
	eg="src=\"";
	eg=eg+location.protocol+"//"+location.host;
	var re = new RegExp(eg, "gi");
	html=html.replace(re, "src=\"");

	eg="href=\"";
	eg=eg+location.protocol+"//"+location.host;
	var re = new RegExp(eg, "gi");
	html=html.replace(re, "href=\"");

	_obj.value=html;
	return s;
}


function HasImage()
{
	var t=getImagesURL().split("|");
	if (t.length>=1)
	{
		return true;
	}
	else
	{
		return false;
	}
}

function getInnerText()
{
	return getText();
}
